/*  운동  */
function mySports() {
	$.ajax({
		url: 'schedule.spring?action=mySports',
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},
		error:function(){
			alert("fail");	
		}

	});

}
function myExerciseAdd() {
	var date = $("#datepicker").val();
	var time = $("#ExScheduleTime").val();
	var cnt = $("#ExScheduleCnt").val();
	var exNo = $("#hiddenExerciseNo").val();
	var button = $(":input:radio[name=exerciseScheduleChoice]:checked").val();
	
	$.ajax({
		url: 'schedule.spring',
		method:'post',
		data:{action:'myExerciseAdd',exerciseNo:exNo,exerciseScheduleStartdate:date,
			exerciseScheduleCount:cnt,exerciseScheduleRuntime:time,
			exerciseScheduleClass:button},
		success:function(html) {
			$(".parsingPage").html(html);
		},
		error:function(){
			alert("fail"); 
		}

	});
}

/*  운동내용  */
function mySportsView(exerciseNo) {
	$.ajax({
		url: 'schedule.spring?action=mySportsView&exerciseNo='+exerciseNo,
		method:'post',
		success:function(html) {
			$("#sports-div").html(html);
		},
		error:function(){
			alert("fail");	
		}

	});

}